// test user request api
const http = uni.$u.http;
// 拉好友进群
export function invite(params){
	return http.post('/api/v6/GroupMember/invite', params)
}
// 踢群
export function weedout(params){
	return http.post('/api/v6/GroupMember/weedout', params)
}
// 退群
export function memberOut(params){
	return http.post('/api/v6/GroupMember/out', params)
}
// 解散群
export function dissolve(params){
	return http.post('/api/v6/Groups/dissolve', params)
}
// 成员身份修改
export function editRole(params){
	return http.post('/api/v6/GroupMember/editRole', params)
}
// 禁言
export function muted(params){
	return http.post('/api/v6/GroupMember/muted', params)
}

// 群成员在线状态
export function onlineGroupMember(params){
	return http.post('/api/v6/Online/onlineGroupMember', params)
}


// 创建群
export function create(params){
	return http.post('/api/v6/Groups/create', params)
}
// 群列表
export function list(params){
	return http.get('/api/v6/GroupMember/list', {params})
}
// 群信息
export function infoConfig(params){
	return http.post('/api/v6/Groups/getConf', params)
}

// 修改群信息
export function editInfo(params){
	return http.post('/api/v6/Groups/edit_base', params)
}

// 修改群配置
export function editConf(params){
	return http.post('/api/v6/Groups/edit_conf', params)
}

// 用户在群内的身份
export function getRole(params){
	return http.post('/api/v6/GroupMember/getRole', params)
}
// 修改用户在群内的昵称
export function setNickName(params){
	return http.post('/api/v6/GroupMember/setNickName', params)
}



// 获取群成员列表
export function getMemberList(params){
	return http.post('/api/v6/GroupMember/getMemberList', params,{
		timeout:0
	})
}

// 获取全部群成员分页
export function getMemberListPage(params){
	// return http.post('/api/v6/GroupMember/getMemberListPage', params)
	return http.post('/api/v6/GroupMember/getGroupMembersList', params)
}

// 获取群管理分页
export function getManagersListPage(params){
	return http.post('/api/v6/GroupMember/getManagersList', params)
}

// 获取群成员分页
export function getMembersListPage(params){
	return http.post('/api/v6/GroupMember/getMembersList', params)
}

// 获取单个群成员
export function getGroupMemberInfo(params){
	return http.post('/api/v6/GroupMember/info', params)
}
// 在群内的好友
export function getInGroupFriends(params){
	return http.post('/api/v6/Friends/getInGroupFriends', params)
}






